﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Model;
namespace BLL
{
   public class RoleBLL
    {
        RoleDAL roledal = new RoleDAL();
        public List<RoleInfo> GetRole(string roleName, int begin, int end, out int total)
        {
          return  roledal.GetRole(roleName,begin,end,out total);
        }

        public string Update(RoleInfo role)
        {
            return roledal.Update(role);
        }

        public string Add(RoleInfo role)
        {
            return roledal.Add(role);
        }

        public string Delete(int rid)
        {
            return roledal.Delete(rid);
        }

        public List<RoleInfo> BindRole(string role)
        {
            return roledal.BindRole(role);
        }
    }
}
